package com.mmlc.network.responsebean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by Administrator on 2016/10/20 0020.
 */
public class ShopOrderPayTypeResponseBean {


    /**
     * code : 0
     * data : [{"description":"描述","ext_info":[{"key":"sale_no","value":"销售单号"}],"img":"收银凭证图片样例","pay_code":"cash_self","pay_name":"自收银"},{"description":"描述","ext_info":[{"key":"sale_no","value":"销售单号"}],"img":"收银凭证图片样例","pay_code":"unified_cash","pay_name":"中央收银"}]
     * message : OK
     */

    private int code;
    private String message;
    private String img;
    /**
     * description : 描述
     * ext_info : [{"key":"sale_no","value":"销售单号"}]
     * img : 收银凭证图片样例
     * pay_code : cash_self
     * pay_name : 自收银
     */

    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public static class DataBean {
        private String description;
        private String img;
        private String pay_code;
        private String pay_name;
        /**
         * key : sale_no
         * value : 销售单号
         */

        private List<ExtInfoBean> ext_info;

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public String getImg() {
            return img;
        }

        public void setImg(String img) {
            this.img = img;
        }

        public String getPay_code() {
            return pay_code;
        }

        public void setPay_code(String pay_code) {
            this.pay_code = pay_code;
        }

        public String getPay_name() {
            return pay_name;
        }

        public void setPay_name(String pay_name) {
            this.pay_name = pay_name;
        }

        public List<ExtInfoBean> getExt_info() {
            return ext_info;
        }

        public void setExt_info(List<ExtInfoBean> ext_info) {
            this.ext_info = ext_info;
        }

        public static class ExtInfoBean implements Parcelable {
            private String key;
            private String value;

            public String getKey() {
                return key;
            }

            public void setKey(String key) {
                this.key = key;
            }

            public String getValue() {
                return value;
            }

            public void setValue(String value) {
                this.value = value;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(this.key);
                dest.writeString(this.value);
            }

            public ExtInfoBean() {
            }

            protected ExtInfoBean(Parcel in) {
                this.key = in.readString();
                this.value = in.readString();
            }

            public static final Parcelable.Creator<ExtInfoBean> CREATOR = new Parcelable.Creator<ExtInfoBean>() {
                @Override
                public ExtInfoBean createFromParcel(Parcel source) {
                    return new ExtInfoBean(source);
                }

                @Override
                public ExtInfoBean[] newArray(int size) {
                    return new ExtInfoBean[size];
                }
            };
        }
    }
}
